Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli: add profiles #371

Merged
merged 5 commits into from
Sep 7, 2023
Merged

Cli: add profiles #371

merged 5 commits into from
Sep 7, 2023

Conversation

nicoloboschi
Copy link
Member

@nicoloboschi nicoloboschi commented Sep 7, 2023

Profiles are stored in the cli configuration yaml file.
There's a default profile which is "virtual" and uses the current cli.yaml configuration top-level entries

Create a profile with inline values

langstream profiles create my-prof --web-service-url xx --tenant xx --token xx  --api-gateway-url xx

Create a profile with inline values and set it as current

langstream profiles create my-prof --web-service-url xx --tenant xx --token xx  --api-gateway-url xx --set-current

Update a profile with inline values

langstream profiles update my-prof --web-service-url xx --tenant xx --token xx  --api-gateway-url xx

Create a profile from json file

langstream profiles import my-prof -f <file.json>

Create a profile from inline json

langstream profiles import my-prof --inline '{"webServiceUrl": "xxx"}'

Create a profile from base64 json

langstream profiles import my-prof --inline 'base64:xxxx'

Create a profile from file and set it as current

langstream profiles import my-prof -f <file.json> --set-current

List profiles

langstream profiles list

Get profile config

langstream profiles get my-prof

Get profile config as yaml

langstream profiles get my-prof -o yaml

Get profile config as json

langstream profiles get my-prof -o json

Get currently used profile

langstream profiles get-current

Set current used profile

langstream profiles set-current my-prof

Delete profile

langstream profiles delete my-prof

Use a profile to list applications

langstream -p my-prof apps list

Copy link
Member

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect

+1

@nicoloboschi nicoloboschi merged commit 2926577 into main Sep 7, 2023
8 checks passed
@nicoloboschi nicoloboschi deleted the cli-profiles branch September 7, 2023 09:41
benfrank241 pushed a commit to vectorize-io/langstream that referenced this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants